package com.fsi.client;

import com.fsi.client.util.BasicFileUploadPopup;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;

public class GetPhotoGUI extends VerticalPanel {
	private final Label title = new Label("Photo upload");
	protected final Button uploadButton = new Button("Upload Image");

	ApplicationGUI gui;

	private final BasicFileUploadPopup fileUpload = new BasicFileUploadPopup();

	public GetPhotoGUI() {
		this.add(title);
		this.add(uploadButton);
	}

	public void photo_upload() {
		fileUpload.center(GWT.getHostPageBaseURL() + "photoupload?customerid="
				+ gui.loginInfo.getEmailAddress() + "&ismainimage=true&title=");
	}

}